﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsItemHome.ascx.cs"
    Inherits="Module_News_Controls_NewsItemHome" %>
<%@ Import Namespace="DemoObject" %>
<%@ Import Namespace="BusinessObjects" %>
<style type="text/css">
    </style>
<br />
<div class="box-1">
    <div class="header-box">
        <p>
            <span><strong><b><a href='<%=UrlBuilder.UrlListNews(CategoryTextId) %>' title="<%=CategoryName%>">
                <%=CategoryName%></a></b> </strong>
                <label>
                </label>
            </span>
        </p>
    </div>
    <div class="middle-box itemnews">
        <asp:Repeater ID="rpt" runat="server">
            <ItemTemplate>
                <div class="itemnews-1">
                    <a href="<%#UrlBuilder.UrlNewsDetail(((TblNews)Container.DataItem).TblCategory.TextId,Eval("TextId").ToString()) %>"
                        title='<%#Eval("Title") %>'>
                        <img src=" <%#UrlBuilder.ImageUrl(Eval("ImageUrl").ToString(),250,null)%>" class="imagenews"
                            alt="" /></a>
                    <h3>
                        <a href="<%#UrlBuilder.UrlNewsDetail(((TblNews)Container.DataItem).TblCategory.TextId,Eval("TextId").ToString()) %>"
                            title='<%#Eval("Title") %>'>
                            <%#Eval("Title") %></a></h3>
                            
                    <div style="margin-top:10px;">
                        <%#Eval("Summary") %>
                    </div>
                    <div style="clear: both">
                    </div>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <asp:Repeater ID="rptmore" runat="server">
            <HeaderTemplate>
                <ul class="bullet-news">
            </HeaderTemplate>
            <ItemTemplate>
                <li><a href="<%#UrlBuilder.UrlNewsDetail(((TblNews)Container.DataItem).TblCategory.TextId,Eval("TextId").ToString()) %>"
                    title='<%#Eval("Title") %>'>
                    <%#Eval("Title") %></a></li>
            </ItemTemplate>
            <FooterTemplate>
                </ul>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    <div class="footer-box">
        <span>
            <label>
            </label>
        </span>
    </div>
</div>
